.class public final Les/c9;
.super Ljava/lang/Object;
.source "AtomParsers.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/c9$a;,
        Les/c9$b;
    }
.end annotation


# static fields
.field private static final a:[I

.field private static final b:[I

.field private static final c:[I

.field private static final d:[I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x3

    new-array v0, v0, [I

    .line 1
    fill-array-data v0, :array_0

    sput-object v0, Les/c9;->a:[I

    const/16 v0, 0x8

    new-array v0, v0, [I

    .line 2
    fill-array-data v0, :array_1

    sput-object v0, Les/c9;->b:[I

    const/16 v0, 0xd

    new-array v0, v0, [I

    .line 3
    fill-array-data v0, :array_2

    sput-object v0, Les/c9;->c:[I

    const/16 v0, 0x10

    new-array v0, v0, [I

    .line 4
    fill-array-data v0, :array_3

    sput-object v0, Les/c9;->d:[I

    return-void

    :array_0
    .array-data 4
        0xbb80
        0xac44
        0x7d00
    .end array-data

    :array_1
    .array-data 4
        0x2
        0x1
        0x2
        0x3
        0x3
        0x4
        0x4
        0x5
    .end array-data

    :array_2
    .array-data 4
        0x17700
        0x15888
        0xfa00
        0xbb80
        0xac44
        0x7d00
        0x5dc0
        0x5622
        0x3e80
        0x2ee0
        0x2b11
        0x1f40
        0x1cb6
    .end array-data

    :array_3
    .array-data 4
        0x0
        0x1
        0x2
        0x3
        0x4
        0x5
        0x6
        0x8
        -0x1
        -0x1
        -0x1
        0x7
        0x8
        -0x1
        0x8
        -0x1
    .end array-data
.end method

.method private static a(Les/e9;)I
    .locals 1

    const/16 v0, 0x10

    .line 128
    invoke-virtual {p0, v0}, Les/e9;->b(I)V

    .line 129
    invoke-virtual {p0}, Les/e9;->c()I

    move-result p0

    return p0
.end method

.method private static a(Les/e9;II)I
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .line 256
    invoke-virtual {p0}, Les/e9;->b()I

    move-result v0

    :goto_0
    sub-int v1, v0, p1

    if-ge v1, p2, :cond_2

    .line 257
    invoke-virtual {p0, v0}, Les/e9;->b(I)V

    .line 258
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v1

    if-lez v1, :cond_1

    .line 259
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v2

    .line 260
    sget v3, Les/c9$a;->B:I

    if-ne v2, v3, :cond_0

    return v0

    :cond_0
    add-int/2addr v0, v1

    goto :goto_0

    .line 261
    :cond_1
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string p1, "childAtomSize should be positive"

    invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p0

    :cond_2
    const/4 p0, -0x1

    return p0
.end method

.method private static a(Les/c9$a$a;)Landroid/util/Pair;
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/c9$a$a;",
            ")",
            "Landroid/util/Pair<",
            "[J[J>;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    if-eqz p0, :cond_5

    .line 172
    sget v0, Les/c9$a;->E:I

    invoke-virtual {p0, v0}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object p0

    if-nez p0, :cond_0

    goto :goto_3

    .line 173
    :cond_0
    iget-object p0, p0, Les/c9$a$b;->d0:Les/e9;

    const/16 v0, 0x8

    .line 174
    invoke-virtual {p0, v0}, Les/e9;->b(I)V

    .line 175
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v0

    .line 176
    invoke-static {v0}, Les/c9$a;->b(I)I

    move-result v0

    .line 177
    invoke-virtual {p0}, Les/e9;->i()I

    move-result v1

    .line 178
    new-array v2, v1, [J

    .line 179
    new-array v3, v1, [J

    const/4 v4, 0x0

    :goto_0
    if-ge v4, v1, :cond_4

    const/4 v5, 0x1

    if-ne v0, v5, :cond_1

    .line 180
    invoke-virtual {p0}, Les/e9;->j()J

    move-result-wide v6

    goto :goto_1

    :cond_1
    invoke-virtual {p0}, Les/e9;->h()J

    move-result-wide v6

    :goto_1
    aput-wide v6, v2, v4

    if-ne v0, v5, :cond_2

    .line 181
    invoke-virtual {p0}, Les/e9;->d()J

    move-result-wide v6

    goto :goto_2

    :cond_2
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v6

    int-to-long v6, v6

    :goto_2
    aput-wide v6, v3, v4

    .line 182
    invoke-virtual {p0}, Les/e9;->e()S

    move-result v6

    if-ne v6, v5, :cond_3

    const/4 v5, 0x2

    .line 183
    invoke-virtual {p0, v5}, Les/e9;->c(I)V

    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 184
    :cond_3
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string v0, "Unsupported media rate."

    invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 185
    :cond_4
    invoke-static {v2, v3}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object p0

    return-object p0

    :cond_5
    :goto_3
    const/4 p0, 0x0

    .line 186
    invoke-static {p0, p0}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object p0

    return-object p0
.end method

.method private static a(Les/e9;I)Landroid/util/Pair;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/e9;",
            "I)",
            "Landroid/util/Pair<",
            "Ljava/lang/String;",
            "[B>;"
        }
    .end annotation

    add-int/lit8 p1, p1, 0x8

    add-int/lit8 p1, p1, 0x4

    .line 262
    invoke-virtual {p0, p1}, Les/e9;->b(I)V

    const/4 p1, 0x1

    .line 263
    invoke-virtual {p0, p1}, Les/e9;->c(I)V

    .line 264
    invoke-virtual {p0}, Les/e9;->f()I

    move-result v0

    :goto_0
    const/16 v1, 0x7f

    if-le v0, v1, :cond_0

    .line 265
    invoke-virtual {p0}, Les/e9;->f()I

    move-result v0

    goto :goto_0

    :cond_0
    const/4 v0, 0x2

    .line 266
    invoke-virtual {p0, v0}, Les/e9;->c(I)V

    .line 267
    invoke-virtual {p0}, Les/e9;->f()I

    move-result v2

    and-int/lit16 v3, v2, 0x80

    if-eqz v3, :cond_1

    .line 268
    invoke-virtual {p0, v0}, Les/e9;->c(I)V

    :cond_1
    and-int/lit8 v3, v2, 0x40

    if-eqz v3, :cond_2

    .line 269
    invoke-virtual {p0}, Les/e9;->k()I

    move-result v3

    invoke-virtual {p0, v3}, Les/e9;->c(I)V

    :cond_2
    const/16 v3, 0x20

    and-int/2addr v2, v3

    if-eqz v2, :cond_3

    .line 270
    invoke-virtual {p0, v0}, Les/e9;->c(I)V

    .line 271
    :cond_3
    invoke-virtual {p0, p1}, Les/e9;->c(I)V

    .line 272
    invoke-virtual {p0}, Les/e9;->f()I

    move-result v0

    :goto_1
    if-le v0, v1, :cond_4

    .line 273
    invoke-virtual {p0}, Les/e9;->f()I

    move-result v0

    goto :goto_1

    .line 274
    :cond_4
    invoke-virtual {p0}, Les/e9;->f()I

    move-result v0

    const/4 v2, 0x0

    if-eq v0, v3, :cond_b

    const/16 v3, 0x21

    if-eq v0, v3, :cond_a

    const/16 v3, 0x23

    if-eq v0, v3, :cond_9

    const/16 v3, 0x40

    if-eq v0, v3, :cond_8

    const/16 v3, 0x6b

    if-eq v0, v3, :cond_7

    const/16 v3, 0xa5

    if-eq v0, v3, :cond_6

    const/16 v3, 0xa6

    if-eq v0, v3, :cond_5

    packed-switch v0, :pswitch_data_0

    packed-switch v0, :pswitch_data_1

    goto :goto_2

    :pswitch_0
    const-string p0, "audio/vnd.dts.hd"

    .line 275
    invoke-static {p0, v2}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object p0

    return-object p0

    :pswitch_1
    const-string p0, "audio/vnd.dts"

    .line 276
    invoke-static {p0, v2}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object p0

    return-object p0

    :cond_5
    const-string v2, "audio/eac3"

    goto :goto_2

    :cond_6
    const-string v2, "audio/ac3"

    goto :goto_2

    :cond_7
    const-string p0, "audio/mpeg"

    .line 277
    invoke-static {p0, v2}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object p0

    return-object p0

    :cond_8
    :pswitch_2
    const-string v2, "audio/mp4a-latm"

    goto :goto_2

    :cond_9
    const-string v2, "video/hevc"

    goto :goto_2

    :cond_a
    const-string v2, "video/avc"

    goto :goto_2

    :cond_b
    const-string v2, "video/mp4v-es"

    :goto_2
    const/16 v0, 0xc

    .line 278
    invoke-virtual {p0, v0}, Les/e9;->c(I)V

    .line 279
    invoke-virtual {p0, p1}, Les/e9;->c(I)V

    .line 280
    invoke-virtual {p0}, Les/e9;->f()I

    move-result p1

    and-int/lit8 v0, p1, 0x7f

    :goto_3
    if-le p1, v1, :cond_c

    .line 281
    invoke-virtual {p0}, Les/e9;->f()I

    move-result p1

    shl-int/lit8 v0, v0, 0x8

    and-int/lit8 v3, p1, 0x7f

    or-int/2addr v0, v3

    goto :goto_3

    .line 282
    :cond_c
    new-array p1, v0, [B

    const/4 v1, 0x0

    .line 283
    invoke-virtual {p0, p1, v1, v0}, Les/e9;->a([BII)V

    .line 284
    invoke-static {v2, p1}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object p0

    return-object p0

    nop

    :pswitch_data_0
    .packed-switch 0x66
        :pswitch_2
        :pswitch_2
        :pswitch_2
    .end packed-switch

    :pswitch_data_1
    .packed-switch 0xa9
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public static a([B)Landroid/util/Pair;
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "([B)",
            "Landroid/util/Pair<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .line 239
    new-instance v0, Les/d9;

    invoke-direct {v0, p0}, Les/d9;-><init>([B)V

    const/4 p0, 0x5

    .line 240
    invoke-virtual {v0, p0}, Les/d9;->b(I)I

    move-result v1

    const/4 v2, 0x4

    .line 241
    invoke-virtual {v0, v2}, Les/d9;->b(I)I

    move-result v3

    const/16 v4, 0x18

    const/16 v5, 0xd

    const/16 v6, 0xf

    if-ne v3, v6, :cond_0

    .line 242
    invoke-virtual {v0, v4}, Les/d9;->b(I)I

    move-result v3

    goto :goto_0

    :cond_0
    if-ge v3, v5, :cond_7

    .line 243
    sget-object v7, Les/c9;->c:[I

    aget v3, v7, v3

    .line 244
    :goto_0
    invoke-virtual {v0, v2}, Les/d9;->b(I)I

    move-result v7

    if-eq v1, p0, :cond_1

    const/16 v8, 0x1d

    if-ne v1, v8, :cond_3

    .line 245
    :cond_1
    invoke-virtual {v0, v2}, Les/d9;->b(I)I

    move-result v1

    if-ne v1, v6, :cond_2

    .line 246
    invoke-virtual {v0, v4}, Les/d9;->b(I)I

    move-result v1

    :goto_1
    move v3, v1

    goto :goto_2

    :cond_2
    if-ge v1, v5, :cond_6

    .line 247
    sget-object v3, Les/c9;->c:[I

    aget v1, v3, v1

    goto :goto_1

    .line 248
    :goto_2
    invoke-virtual {v0, p0}, Les/d9;->b(I)I

    move-result p0

    const/16 v1, 0x16

    if-ne p0, v1, :cond_3

    .line 249
    invoke-virtual {v0, v2}, Les/d9;->b(I)I

    move-result v7

    :cond_3
    const/4 p0, -0x1

    if-ltz v7, :cond_4

    .line 250
    sget-object v0, Les/c9;->d:[I

    array-length v1, v0

    if-ge v7, v1, :cond_4

    .line 251
    aget v0, v0, v7

    goto :goto_3

    :cond_4
    const/4 v0, -0x1

    :goto_3
    if-eq v0, p0, :cond_5

    .line 252
    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-static {p0, v0}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object p0

    return-object p0

    .line 253
    :cond_5
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string v0, "invalid channelCount"

    invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 254
    :cond_6
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string v0, "frequencyIndex >= 13."

    invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 255
    :cond_7
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string v0, "frequencyIndex >= 13"

    invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    goto :goto_5

    :goto_4
    throw p0

    :goto_5
    goto :goto_4
.end method

.method private static a(Les/e9;IIIIJLjava/lang/String;Z)Les/f9$a;
    .locals 16
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    move-object/from16 v0, p0

    move/from16 v1, p1

    move-wide/from16 v4, p5

    move-object/from16 v9, p7

    add-int/lit8 v2, p2, 0x8

    .line 187
    invoke-virtual {v0, v2}, Les/e9;->b(I)V

    const/16 v2, 0x10

    const/16 v3, 0x8

    if-eqz p8, :cond_0

    .line 188
    invoke-virtual {v0, v3}, Les/e9;->c(I)V

    .line 189
    invoke-virtual/range {p0 .. p0}, Les/e9;->k()I

    move-result v6

    const/4 v7, 0x6

    .line 190
    invoke-virtual {v0, v7}, Les/e9;->c(I)V

    goto :goto_0

    .line 191
    :cond_0
    invoke-virtual {v0, v2}, Les/e9;->c(I)V

    const/4 v6, 0x0

    .line 192
    :goto_0
    invoke-virtual/range {p0 .. p0}, Les/e9;->k()I

    move-result v7

    .line 193
    invoke-virtual/range {p0 .. p0}, Les/e9;->k()I

    move-result v8

    const/4 v10, 0x4

    .line 194
    invoke-virtual {v0, v10}, Les/e9;->c(I)V

    .line 195
    invoke-virtual/range {p0 .. p0}, Les/e9;->g()I

    move-result v10

    if-lez v6, :cond_1

    .line 196
    invoke-virtual {v0, v2}, Les/e9;->c(I)V

    const/4 v2, 0x2

    if-ne v6, v2, :cond_1

    const/16 v2, 0x14

    .line 197
    invoke-virtual {v0, v2}, Les/e9;->c(I)V

    .line 198
    :cond_1
    sget v2, Les/c9$a;->k:I

    if-ne v1, v2, :cond_2

    const-string v2, "audio/ac3"

    goto :goto_2

    .line 199
    :cond_2
    sget v2, Les/c9$a;->m:I

    if-ne v1, v2, :cond_3

    const-string v2, "audio/eac3"

    goto :goto_2

    .line 200
    :cond_3
    sget v2, Les/c9$a;->o:I

    if-ne v1, v2, :cond_4

    const-string v2, "audio/vnd.dts"

    goto :goto_2

    .line 201
    :cond_4
    sget v2, Les/c9$a;->p:I

    if-eq v1, v2, :cond_9

    sget v2, Les/c9$a;->q:I

    if-ne v1, v2, :cond_5

    goto :goto_1

    .line 202
    :cond_5
    sget v2, Les/c9$a;->r:I

    if-ne v1, v2, :cond_6

    const-string v2, "audio/vnd.dts.hd;profile=lbr"

    goto :goto_2

    .line 203
    :cond_6
    sget v2, Les/c9$a;->W:I

    if-ne v1, v2, :cond_7

    const-string v2, "audio/3gpp"

    goto :goto_2

    .line 204
    :cond_7
    sget v2, Les/c9$a;->X:I

    if-ne v1, v2, :cond_8

    const-string v2, "audio/amr-wb"

    goto :goto_2

    :cond_8
    const/4 v2, 0x0

    goto :goto_2

    :cond_9
    :goto_1
    const-string v2, "audio/vnd.dts.hd"

    .line 205
    :goto_2
    invoke-virtual/range {p0 .. p0}, Les/e9;->b()I

    move-result v11

    const/4 v12, 0x0

    :goto_3
    sub-int v13, v11, p2

    move/from16 v14, p3

    if-ge v13, v14, :cond_14

    .line 206
    invoke-virtual {v0, v11}, Les/e9;->b(I)V

    .line 207
    invoke-virtual/range {p0 .. p0}, Les/e9;->c()I

    move-result v13

    if-lez v13, :cond_13

    .line 208
    invoke-virtual/range {p0 .. p0}, Les/e9;->c()I

    move-result v15

    .line 209
    sget v6, Les/c9$a;->i:I

    if-eq v1, v6, :cond_e

    sget v6, Les/c9$a;->J:I

    if-ne v1, v6, :cond_a

    goto :goto_4

    .line 210
    :cond_a
    sget v6, Les/c9$a;->k:I

    if-ne v1, v6, :cond_b

    sget v6, Les/c9$a;->l:I

    if-ne v15, v6, :cond_b

    add-int/2addr v11, v3

    .line 211
    invoke-virtual {v0, v11}, Les/e9;->b(I)V

    .line 212
    invoke-static/range {p4 .. p4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v4, v5, v9}, Les/c9;->a(Les/e9;Ljava/lang/String;JLjava/lang/String;)Les/f9$a;

    move-result-object v0

    return-object v0

    .line 213
    :cond_b
    sget v6, Les/c9$a;->m:I

    if-ne v1, v6, :cond_c

    sget v6, Les/c9$a;->n:I

    if-ne v15, v6, :cond_c

    add-int/2addr v11, v3

    .line 214
    invoke-virtual {v0, v11}, Les/e9;->b(I)V

    .line 215
    invoke-static/range {p4 .. p4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v4, v5, v9}, Les/c9;->b(Les/e9;Ljava/lang/String;JLjava/lang/String;)Les/f9$a;

    move-result-object v0

    return-object v0

    .line 216
    :cond_c
    sget v6, Les/c9$a;->o:I

    if-eq v1, v6, :cond_d

    sget v6, Les/c9$a;->r:I

    if-eq v1, v6, :cond_d

    sget v6, Les/c9$a;->p:I

    if-eq v1, v6, :cond_d

    sget v6, Les/c9$a;->q:I

    if-ne v1, v6, :cond_12

    :cond_d
    sget v6, Les/c9$a;->s:I

    if-ne v15, v6, :cond_12

    .line 217
    invoke-static/range {p4 .. p4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v0

    const/4 v3, -0x1

    const/4 v6, -0x1

    const/4 v8, 0x0

    move-object v1, v2

    move v2, v3

    move v3, v6

    move-wide/from16 v4, p5

    move v6, v7

    move v7, v10

    move-object/from16 v9, p7

    invoke-static/range {v0 .. v9}, Les/f9$a;->a(Ljava/lang/String;Ljava/lang/String;IIJIILjava/util/List;Ljava/lang/String;)Les/f9$a;

    move-result-object v0

    return-object v0

    .line 218
    :cond_e
    :goto_4
    sget v6, Les/c9$a;->B:I

    const/4 v3, -0x1

    if-ne v15, v6, :cond_f

    move v6, v11

    goto :goto_5

    :cond_f
    if-eqz p8, :cond_10

    .line 219
    sget v6, Les/c9$a;->j:I

    if-ne v15, v6, :cond_10

    .line 220
    invoke-static {v0, v11, v13}, Les/c9;->a(Les/e9;II)I

    move-result v6

    goto :goto_5

    :cond_10
    const/4 v6, -0x1

    :goto_5
    if-eq v6, v3, :cond_12

    .line 221
    invoke-static {v0, v6}, Les/c9;->a(Les/e9;I)Landroid/util/Pair;

    move-result-object v2

    .line 222
    iget-object v3, v2, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v3, Ljava/lang/String;

    .line 223
    iget-object v2, v2, Landroid/util/Pair;->second:Ljava/lang/Object;

    move-object v12, v2

    check-cast v12, [B

    const-string v2, "audio/mp4a-latm"

    .line 224
    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_11

    .line 225
    invoke-static {v12}, Les/c9;->a([B)Landroid/util/Pair;

    move-result-object v2

    .line 226
    iget-object v6, v2, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v6, Ljava/lang/Integer;

    invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I

    move-result v10

    .line 227
    iget-object v2, v2, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v7

    :cond_11
    move-object v2, v3

    :cond_12
    add-int/2addr v11, v13

    const/16 v3, 0x8

    goto/16 :goto_3

    .line 228
    :cond_13
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "childAtomSize should be positive"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_14
    if-nez v2, :cond_15

    const/4 v0, 0x0

    return-object v0

    :cond_15
    const/4 v0, 0x0

    .line 229
    invoke-static/range {p4 .. p4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v3, -0x1

    if-nez v12, :cond_16

    goto :goto_6

    .line 230
    :cond_16
    invoke-static {v12}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    :goto_6
    move-object v11, v0

    move-object v0, v1

    move-object v1, v2

    move v2, v3

    move v3, v8

    move-wide/from16 v4, p5

    move v6, v7

    move v7, v10

    move-object v8, v11

    move-object/from16 v9, p7

    .line 231
    invoke-static/range {v0 .. v9}, Les/f9$a;->a(Ljava/lang/String;Ljava/lang/String;IIJIILjava/util/List;Ljava/lang/String;)Les/f9$a;

    move-result-object v0

    return-object v0
.end method

.method private static a(Les/e9;IIIJII)Les/f9$a;
    .locals 14
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;,
            Ljava/lang/IllegalStateException;
        }
    .end annotation

    move-object v0, p0

    move/from16 v1, p2

    add-int/lit8 v2, p1, 0x8

    .line 149
    invoke-virtual {p0, v2}, Les/e9;->b(I)V

    const/16 v2, 0x18

    .line 150
    invoke-virtual {p0, v2}, Les/e9;->c(I)V

    .line 151
    invoke-virtual {p0}, Les/e9;->k()I

    move-result v9

    .line 152
    invoke-virtual {p0}, Les/e9;->k()I

    move-result v10

    const/16 v2, 0x32

    .line 153
    invoke-virtual {p0, v2}, Les/e9;->c(I)V

    .line 154
    invoke-virtual {p0}, Les/e9;->b()I

    move-result v2

    const/4 v3, 0x0

    move-object v4, v3

    :goto_0
    sub-int v5, v2, p1

    if-ge v5, v1, :cond_a

    .line 155
    invoke-virtual {p0, v2}, Les/e9;->b(I)V

    .line 156
    invoke-virtual {p0}, Les/e9;->b()I

    move-result v5

    .line 157
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v6

    if-nez v6, :cond_0

    .line 158
    invoke-virtual {p0}, Les/e9;->b()I

    move-result v7

    sub-int/2addr v7, p1

    if-ne v7, v1, :cond_0

    goto :goto_2

    :cond_0
    if-lez v6, :cond_9

    .line 159
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v7

    .line 160
    sget v8, Les/c9$a;->z:I

    if-ne v7, v8, :cond_2

    if-nez v4, :cond_1

    const-string v4, "video/avc"

    goto :goto_1

    .line 161
    :cond_1
    new-instance v0, Ljava/lang/IllegalStateException;

    invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V

    throw v0

    .line 162
    :cond_2
    sget v8, Les/c9$a;->A:I

    if-ne v7, v8, :cond_4

    if-nez v4, :cond_3

    const-string v4, "video/hevc"

    goto :goto_1

    .line 163
    :cond_3
    new-instance v0, Ljava/lang/IllegalStateException;

    invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V

    throw v0

    .line 164
    :cond_4
    sget v8, Les/c9$a;->h:I

    if-ne v7, v8, :cond_6

    if-nez v4, :cond_5

    const-string v4, "video/3gpp"

    goto :goto_1

    .line 165
    :cond_5
    new-instance v0, Ljava/lang/IllegalStateException;

    invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V

    throw v0

    .line 166
    :cond_6
    sget v8, Les/c9$a;->B:I

    if-ne v7, v8, :cond_8

    if-nez v4, :cond_7

    .line 167
    invoke-static {p0, v5}, Les/c9;->a(Les/e9;I)Landroid/util/Pair;

    move-result-object v4

    .line 168
    iget-object v4, v4, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v4, Ljava/lang/String;

    goto :goto_1

    .line 169
    :cond_7
    new-instance v0, Ljava/lang/IllegalStateException;

    invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V

    throw v0

    :cond_8
    :goto_1
    add-int/2addr v2, v6

    goto :goto_0

    .line 170
    :cond_9
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "childAtomSize should be positive"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_a
    :goto_2
    if-nez v4, :cond_b

    return-object v3

    .line 171
    :cond_b
    invoke-static/range {p3 .. p3}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v5, -0x1

    const/4 v6, -0x1

    const/4 v11, 0x0

    const/high16 v13, 0x3f800000    # 1.0f

    move-wide/from16 v7, p4

    move/from16 v12, p6

    invoke-static/range {v3 .. v13}, Les/f9$a;->a(Ljava/lang/String;Ljava/lang/String;IIJIILjava/util/List;IF)Les/f9$a;

    move-result-object v0

    return-object v0
.end method

.method private static a(Les/e9;IJILjava/lang/String;Z)Les/f9$a;
    .locals 22
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;,
            Ljava/lang/IllegalStateException;
        }
    .end annotation

    move-object/from16 v9, p0

    const/16 v0, 0xc

    .line 130
    invoke-virtual {v9, v0}, Les/e9;->b(I)V

    .line 131
    invoke-virtual/range {p0 .. p0}, Les/e9;->c()I

    move-result v10

    const/4 v0, 0x0

    const/4 v1, 0x0

    const/4 v11, 0x0

    :goto_0
    if-ge v11, v10, :cond_9

    .line 132
    invoke-virtual/range {p0 .. p0}, Les/e9;->b()I

    move-result v12

    .line 133
    invoke-virtual/range {p0 .. p0}, Les/e9;->c()I

    move-result v13

    if-lez v13, :cond_8

    .line 134
    invoke-virtual/range {p0 .. p0}, Les/e9;->c()I

    move-result v1

    .line 135
    sget v2, Les/c9$a;->c:I

    if-eq v1, v2, :cond_6

    sget v2, Les/c9$a;->d:I

    if-eq v1, v2, :cond_6

    sget v2, Les/c9$a;->I:I

    if-eq v1, v2, :cond_6

    sget v2, Les/c9$a;->L:I

    if-eq v1, v2, :cond_6

    sget v2, Les/c9$a;->e:I

    if-eq v1, v2, :cond_6

    sget v2, Les/c9$a;->f:I

    if-eq v1, v2, :cond_6

    sget v2, Les/c9$a;->g:I

    if-ne v1, v2, :cond_0

    goto/16 :goto_2

    .line 136
    :cond_0
    sget v2, Les/c9$a;->i:I

    if-eq v1, v2, :cond_5

    sget v2, Les/c9$a;->J:I

    if-eq v1, v2, :cond_5

    sget v2, Les/c9$a;->k:I

    if-eq v1, v2, :cond_5

    sget v2, Les/c9$a;->m:I

    if-eq v1, v2, :cond_5

    sget v2, Les/c9$a;->o:I

    if-eq v1, v2, :cond_5

    sget v2, Les/c9$a;->r:I

    if-eq v1, v2, :cond_5

    sget v2, Les/c9$a;->p:I

    if-eq v1, v2, :cond_5

    sget v2, Les/c9$a;->q:I

    if-eq v1, v2, :cond_5

    sget v2, Les/c9$a;->W:I

    if-eq v1, v2, :cond_5

    sget v2, Les/c9$a;->X:I

    if-ne v1, v2, :cond_1

    goto :goto_1

    .line 137
    :cond_1
    sget v2, Les/c9$a;->K:I

    if-ne v1, v2, :cond_2

    .line 138
    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v5, -0x1

    const-string v4, "application/ttml+xml"

    move-wide/from16 v6, p2

    move-object/from16 v8, p5

    invoke-static/range {v3 .. v8}, Les/f9$a;->a(Ljava/lang/String;Ljava/lang/String;IJLjava/lang/String;)Les/f9$a;

    move-result-object v0

    goto/16 :goto_3

    .line 139
    :cond_2
    sget v2, Les/c9$a;->T:I

    if-ne v1, v2, :cond_3

    .line 140
    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v5, -0x1

    const-string v4, "application/x-quicktime-tx3g"

    move-wide/from16 v6, p2

    move-object/from16 v8, p5

    invoke-static/range {v3 .. v8}, Les/f9$a;->a(Ljava/lang/String;Ljava/lang/String;IJLjava/lang/String;)Les/f9$a;

    move-result-object v0

    goto :goto_3

    .line 141
    :cond_3
    sget v2, Les/c9$a;->U:I

    if-ne v1, v2, :cond_4

    .line 142
    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v5, -0x1

    const-string v4, "application/x-mp4vtt"

    move-wide/from16 v6, p2

    move-object/from16 v8, p5

    invoke-static/range {v3 .. v8}, Les/f9$a;->a(Ljava/lang/String;Ljava/lang/String;IJLjava/lang/String;)Les/f9$a;

    move-result-object v0

    goto :goto_3

    .line 143
    :cond_4
    sget v2, Les/c9$a;->V:I

    if-ne v1, v2, :cond_7

    .line 144
    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v14

    const/16 v16, -0x1

    const-wide/16 v20, 0x0

    const-string v15, "application/ttml+xml"

    move-wide/from16 v17, p2

    move-object/from16 v19, p5

    invoke-static/range {v14 .. v21}, Les/f9$a;->a(Ljava/lang/String;Ljava/lang/String;IJLjava/lang/String;J)Les/f9$a;

    move-result-object v0

    goto :goto_3

    :cond_5
    :goto_1
    move-object/from16 v0, p0

    move v2, v12

    move v3, v13

    move/from16 v4, p1

    move-wide/from16 v5, p2

    move-object/from16 v7, p5

    move/from16 v8, p6

    .line 145
    invoke-static/range {v0 .. v8}, Les/c9;->a(Les/e9;IIIIJLjava/lang/String;Z)Les/f9$a;

    move-result-object v0

    goto :goto_3

    :cond_6
    :goto_2
    move-object/from16 v0, p0

    move v1, v12

    move v2, v13

    move/from16 v3, p1

    move-wide/from16 v4, p2

    move/from16 v6, p4

    move v7, v11

    .line 146
    invoke-static/range {v0 .. v7}, Les/c9;->a(Les/e9;IIIJII)Les/f9$a;

    move-result-object v0

    :cond_7
    :goto_3
    add-int/2addr v12, v13

    .line 147
    invoke-virtual {v9, v12}, Les/e9;->b(I)V

    add-int/lit8 v11, v11, 0x1

    goto/16 :goto_0

    .line 148
    :cond_8
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "childAtomSize should be positive"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_9
    return-object v0
.end method

.method public static a(Les/e9;Ljava/lang/String;JLjava/lang/String;)Les/f9$a;
    .locals 13
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .line 232
    invoke-virtual {p0}, Les/e9;->f()I

    move-result v0

    and-int/lit16 v0, v0, 0xc0

    shr-int/lit8 v0, v0, 0x6

    if-ltz v0, :cond_1

    .line 233
    sget-object v1, Les/c9;->a:[I

    array-length v2, v1

    if-ge v0, v2, :cond_1

    .line 234
    aget v10, v1, v0

    .line 235
    invoke-virtual {p0}, Les/e9;->f()I

    move-result v0

    .line 236
    sget-object v1, Les/c9;->b:[I

    and-int/lit8 v2, v0, 0x38

    shr-int/lit8 v2, v2, 0x3

    aget v1, v1, v2

    and-int/lit8 v0, v0, 0x4

    if-eqz v0, :cond_0

    add-int/lit8 v1, v1, 0x1

    :cond_0
    move v9, v1

    const/4 v5, -0x1

    const/4 v6, -0x1

    const/4 v11, 0x0

    const-string v4, "audio/ac3"

    move-object v3, p1

    move-wide v7, p2

    move-object/from16 v12, p4

    .line 237
    invoke-static/range {v3 .. v12}, Les/f9$a;->a(Ljava/lang/String;Ljava/lang/String;IIJIILjava/util/List;Ljava/lang/String;)Les/f9$a;

    move-result-object v0

    return-object v0

    .line 238
    :cond_1
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "fscod is neither in nor at the end of the SAMPLE_RATE_BY_FSCOD"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public static a(Les/f9;Les/c9$a$a;)Les/f9$b;
    .locals 50
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalStateException;,
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    .line 26
    sget v2, Les/c9$a;->Q:I

    invoke-virtual {v1, v2}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v2

    iget-object v2, v2, Les/c9$a$b;->d0:Les/e9;

    .line 27
    sget v3, Les/c9$a;->R:I

    invoke-virtual {v1, v3}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v3

    if-nez v3, :cond_0

    .line 28
    sget v3, Les/c9$a;->S:I

    invoke-virtual {v1, v3}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v3

    .line 29
    :cond_0
    iget-object v4, v3, Les/c9$a$b;->d0:Les/e9;

    .line 30
    sget v5, Les/c9$a;->P:I

    invoke-virtual {v1, v5}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v5

    iget-object v5, v5, Les/c9$a$b;->d0:Les/e9;

    .line 31
    sget v6, Les/c9$a;->M:I

    invoke-virtual {v1, v6}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v6

    iget-object v6, v6, Les/c9$a$b;->d0:Les/e9;

    .line 32
    sget v7, Les/c9$a;->N:I

    invoke-virtual {v1, v7}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v7

    const/4 v8, 0x0

    if-eqz v7, :cond_1

    .line 33
    iget-object v7, v7, Les/c9$a$b;->d0:Les/e9;

    goto :goto_0

    :cond_1
    move-object v7, v8

    .line 34
    :goto_0
    sget v9, Les/c9$a;->O:I

    invoke-virtual {v1, v9}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v1

    if-eqz v1, :cond_2

    .line 35
    iget-object v8, v1, Les/c9$a$b;->d0:Les/e9;

    :cond_2
    const/16 v1, 0xc

    .line 36
    invoke-virtual {v2, v1}, Les/e9;->b(I)V

    .line 37
    invoke-virtual {v2}, Les/e9;->i()I

    move-result v9

    .line 38
    invoke-virtual {v2}, Les/e9;->i()I

    move-result v10

    .line 39
    new-array v12, v10, [J

    .line 40
    new-array v13, v10, [I

    const/4 v14, 0x0

    .line 41
    new-array v15, v10, [J

    .line 42
    new-array v11, v10, [I

    const-wide/16 v17, 0x0

    const/4 v1, 0x0

    if-nez v10, :cond_3

    .line 43
    new-instance v0, Les/f9$b;

    new-array v1, v1, [J

    move-object v2, v11

    move-object v11, v0

    move-object/from16 v16, v2

    move-object/from16 v19, v1

    invoke-direct/range {v11 .. v19}, Les/f9$b;-><init>([J[II[J[IJ[J)V

    return-object v0

    :cond_3
    const/16 v14, 0xc

    .line 44
    invoke-virtual {v4, v14}, Les/e9;->b(I)V

    .line 45
    invoke-virtual {v4}, Les/e9;->i()I

    move-result v1

    .line 46
    invoke-virtual {v5, v14}, Les/e9;->b(I)V

    .line 47
    invoke-virtual {v5}, Les/e9;->i()I

    move-result v14

    const/4 v0, 0x1

    sub-int/2addr v14, v0

    move/from16 v20, v1

    .line 48
    invoke-virtual {v5}, Les/e9;->c()I

    move-result v1

    if-ne v1, v0, :cond_2b

    .line 49
    invoke-virtual {v5}, Les/e9;->i()I

    move-result v1

    const/4 v0, 0x4

    .line 50
    invoke-virtual {v5, v0}, Les/e9;->c(I)V

    const/16 v22, -0x1

    if-lez v14, :cond_4

    .line 51
    invoke-virtual {v5}, Les/e9;->i()I

    move-result v23

    const/16 v21, 0x1

    add-int/lit8 v23, v23, -0x1

    const/16 v0, 0xc

    goto :goto_1

    :cond_4
    const/16 v21, 0x1

    const/16 v0, 0xc

    const/16 v23, -0x1

    .line 52
    :goto_1
    invoke-virtual {v6, v0}, Les/e9;->b(I)V

    .line 53
    invoke-virtual {v6}, Les/e9;->i()I

    move-result v24

    add-int/lit8 v24, v24, -0x1

    .line 54
    invoke-virtual {v6}, Les/e9;->i()I

    move-result v25

    .line 55
    invoke-virtual {v6}, Les/e9;->i()I

    move-result v26

    if-eqz v8, :cond_5

    .line 56
    invoke-virtual {v8, v0}, Les/e9;->b(I)V

    .line 57
    invoke-virtual {v8}, Les/e9;->i()I

    move-result v27

    add-int/lit8 v27, v27, -0x1

    .line 58
    invoke-virtual {v8}, Les/e9;->i()I

    move-result v28

    .line 59
    invoke-virtual {v8}, Les/e9;->c()I

    move-result v29

    goto :goto_2

    :cond_5
    const/16 v27, 0x0

    const/16 v28, 0x0

    const/16 v29, 0x0

    :goto_2
    if-eqz v7, :cond_6

    .line 60
    invoke-virtual {v7, v0}, Les/e9;->b(I)V

    .line 61
    invoke-virtual {v7}, Les/e9;->i()I

    move-result v0

    .line 62
    invoke-virtual {v7}, Les/e9;->i()I

    move-result v22

    add-int/lit8 v22, v22, -0x1

    move/from16 v31, v1

    move/from16 v30, v22

    move/from16 v22, v0

    goto :goto_3

    :cond_6
    move/from16 v31, v1

    const/4 v0, 0x0

    const/16 v22, 0x0

    const/16 v30, -0x1

    .line 63
    :goto_3
    new-array v1, v0, [J

    move/from16 v32, v14

    .line 64
    iget v14, v3, Les/c9$a;->a:I

    move-object/from16 v33, v5

    sget v5, Les/c9$a;->R:I

    if-ne v14, v5, :cond_7

    .line 65
    invoke-virtual {v4}, Les/e9;->h()J

    move-result-wide v34

    goto :goto_4

    .line 66
    :cond_7
    invoke-virtual {v4}, Les/e9;->j()J

    move-result-wide v34

    :goto_4
    const-wide/16 v36, 0x0

    move/from16 v38, v23

    move/from16 v16, v31

    move-wide/from16 v39, v36

    const/4 v5, 0x0

    const/4 v14, 0x0

    move/from16 v23, v22

    const/16 v22, 0x0

    move/from16 v47, v29

    move-object/from16 v29, v3

    move/from16 v3, v47

    move/from16 v48, v26

    move-object/from16 v26, v4

    move/from16 v4, v48

    move/from16 v49, v30

    move-object/from16 v30, v8

    move/from16 v8, v49

    :goto_5
    if-ge v5, v10, :cond_14

    .line 67
    aput-wide v34, v12, v5

    if-nez v9, :cond_8

    .line 68
    invoke-virtual {v2}, Les/e9;->i()I

    move-result v41

    goto :goto_6

    :cond_8
    move/from16 v41, v9

    :goto_6
    aput v41, v13, v5

    move-object/from16 v41, v2

    .line 69
    aget v2, v13, v5

    move/from16 v42, v9

    move/from16 v43, v10

    int-to-long v9, v2

    add-long v17, v17, v9

    .line 70
    aget v2, v13, v5

    if-le v2, v14, :cond_9

    .line 71
    aget v14, v13, v5

    :cond_9
    int-to-long v9, v3

    add-long v9, v39, v9

    .line 72
    aput-wide v9, v15, v5

    if-nez v7, :cond_a

    const/4 v2, 0x1

    goto :goto_7

    :cond_a
    const/4 v2, 0x0

    .line 73
    :goto_7
    aput v2, v11, v5

    if-ne v5, v8, :cond_b

    const/4 v2, 0x1

    .line 74
    aput v2, v11, v5

    sub-int v9, v0, v23

    .line 75
    aget-wide v44, v15, v5

    aput-wide v44, v1, v9

    add-int/lit8 v23, v23, -0x1

    if-lez v23, :cond_b

    .line 76
    invoke-virtual {v7}, Les/e9;->i()I

    move-result v8

    sub-int/2addr v8, v2

    :cond_b
    int-to-long v9, v4

    add-long v39, v39, v9

    add-int/lit8 v25, v25, -0x1

    if-nez v25, :cond_c

    if-lez v24, :cond_c

    .line 77
    invoke-virtual {v6}, Les/e9;->i()I

    move-result v2

    .line 78
    invoke-virtual {v6}, Les/e9;->i()I

    move-result v4

    add-int/lit8 v24, v24, -0x1

    move/from16 v25, v2

    :cond_c
    if-eqz v30, :cond_d

    add-int/lit8 v28, v28, -0x1

    if-nez v28, :cond_d

    if-lez v27, :cond_d

    .line 79
    invoke-virtual/range {v30 .. v30}, Les/e9;->i()I

    move-result v2

    .line 80
    invoke-virtual/range {v30 .. v30}, Les/e9;->c()I

    move-result v3

    add-int/lit8 v27, v27, -0x1

    move/from16 v28, v2

    :cond_d
    add-int/lit8 v31, v31, -0x1

    if-nez v31, :cond_12

    add-int/lit8 v2, v22, 0x1

    move/from16 v9, v20

    move/from16 v20, v3

    move-object/from16 v10, v29

    if-ge v2, v9, :cond_f

    .line 81
    iget v3, v10, Les/c9$a;->a:I

    move/from16 v29, v4

    sget v4, Les/c9$a;->R:I

    if-ne v3, v4, :cond_e

    .line 82
    invoke-virtual/range {v26 .. v26}, Les/e9;->h()J

    move-result-wide v34

    goto :goto_8

    .line 83
    :cond_e
    invoke-virtual/range {v26 .. v26}, Les/e9;->j()J

    move-result-wide v34

    goto :goto_8

    :cond_f
    move/from16 v29, v4

    :goto_8
    move/from16 v3, v38

    if-ne v2, v3, :cond_11

    .line 84
    invoke-virtual/range {v33 .. v33}, Les/e9;->i()I

    move-result v4

    move/from16 v38, v3

    move/from16 p1, v4

    move-object/from16 v3, v33

    const/4 v4, 0x4

    .line 85
    invoke-virtual {v3, v4}, Les/e9;->c(I)V

    add-int/lit8 v32, v32, -0x1

    if-lez v32, :cond_10

    .line 86
    invoke-virtual {v3}, Les/e9;->i()I

    move-result v16

    const/16 v21, 0x1

    add-int/lit8 v38, v16, -0x1

    goto :goto_9

    :cond_10
    const/16 v21, 0x1

    :goto_9
    move/from16 v16, p1

    goto :goto_a

    :cond_11
    move/from16 v38, v3

    move-object/from16 v3, v33

    const/4 v4, 0x4

    const/16 v21, 0x1

    :goto_a
    move/from16 v22, v2

    move/from16 v33, v5

    if-ge v2, v9, :cond_13

    move/from16 v31, v16

    goto :goto_b

    :cond_12
    move/from16 v9, v20

    move-object/from16 v10, v29

    const/16 v21, 0x1

    move/from16 v20, v3

    move/from16 v29, v4

    move-object/from16 v3, v33

    const/4 v4, 0x4

    .line 87
    aget v2, v13, v5

    move/from16 v33, v5

    int-to-long v4, v2

    add-long v34, v34, v4

    :cond_13
    :goto_b
    add-int/lit8 v5, v33, 0x1

    move-object/from16 v33, v3

    move/from16 v3, v20

    move/from16 v4, v29

    move-object/from16 v2, v41

    move/from16 v20, v9

    move-object/from16 v29, v10

    move/from16 v9, v42

    move/from16 v10, v43

    goto/16 :goto_5

    :cond_14
    move/from16 v43, v10

    const/16 v21, 0x1

    if-nez v23, :cond_2a

    if-nez v25, :cond_2a

    if-nez v31, :cond_2a

    if-nez v24, :cond_2a

    if-nez v27, :cond_2a

    const/4 v3, 0x1

    move-object/from16 v2, p0

    .line 88
    iget-object v4, v2, Les/f9;->f:[J

    if-nez v4, :cond_15

    .line 89
    iget-wide v3, v2, Les/f9;->b:J

    const-wide/32 v5, 0xf4240

    invoke-static {v15, v5, v6, v3, v4}, Les/g9;->a([JJJ)V

    .line 90
    iget-wide v2, v2, Les/f9;->b:J

    invoke-static {v1, v5, v6, v2, v3}, Les/g9;->a([JJJ)V

    .line 91
    new-instance v0, Les/f9$b;

    move-object v5, v11

    move-object v11, v0

    move-object/from16 v16, v5

    move-object/from16 v19, v1

    invoke-direct/range {v11 .. v19}, Les/f9$b;-><init>([J[II[J[IJ[J)V

    return-object v0

    :cond_15
    move-object v5, v11

    .line 92
    array-length v6, v4

    if-ne v6, v3, :cond_18

    const/16 v19, 0x0

    aget-wide v6, v4, v19

    cmp-long v4, v6, v36

    if-nez v4, :cond_18

    move/from16 v4, v43

    const/4 v3, 0x0

    :goto_c
    if-ge v3, v4, :cond_16

    .line 93
    aget-wide v6, v15, v3

    iget-object v8, v2, Les/f9;->g:[J

    aget-wide v9, v8, v19

    sub-long v20, v6, v9

    const-wide/32 v22, 0xf4240

    iget-wide v6, v2, Les/f9;->b:J

    move-wide/from16 v24, v6

    invoke-static/range {v20 .. v25}, Les/g9;->a(JJJ)J

    move-result-wide v6

    aput-wide v6, v15, v3

    add-int/lit8 v3, v3, 0x1

    const/16 v19, 0x0

    goto :goto_c

    :cond_16
    const/4 v3, 0x0

    :goto_d
    if-ge v3, v0, :cond_17

    .line 94
    aget-wide v6, v1, v3

    iget-object v4, v2, Les/f9;->g:[J

    const/4 v8, 0x0

    aget-wide v9, v4, v8

    sub-long v20, v6, v9

    const-wide/32 v22, 0xf4240

    iget-wide v6, v2, Les/f9;->b:J

    move-wide/from16 v24, v6

    invoke-static/range {v20 .. v25}, Les/g9;->a(JJJ)J

    move-result-wide v6

    aput-wide v6, v1, v3

    add-int/lit8 v3, v3, 0x1

    goto :goto_d

    .line 95
    :cond_17
    new-instance v0, Les/f9$b;

    move-object v11, v0

    move-object/from16 v16, v5

    move-object/from16 v19, v1

    invoke-direct/range {v11 .. v19}, Les/f9$b;-><init>([J[II[J[IJ[J)V

    return-object v0

    :cond_18
    move/from16 v4, v43

    const/4 v0, 0x0

    const/4 v1, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    .line 96
    :goto_e
    iget-object v8, v2, Les/f9;->f:[J

    array-length v9, v8

    const-wide/16 v10, -0x1

    if-ge v0, v9, :cond_1b

    .line 97
    iget-object v9, v2, Les/f9;->g:[J

    move/from16 v43, v4

    aget-wide v3, v9, v0

    cmp-long v9, v3, v10

    if-eqz v9, :cond_1a

    .line 98
    aget-wide v22, v8, v0

    iget-wide v8, v2, Les/f9;->b:J

    iget-wide v10, v2, Les/f9;->c:J

    move-wide/from16 v24, v8

    move-wide/from16 v26, v10

    invoke-static/range {v22 .. v27}, Les/g9;->a(JJJ)J

    move-result-wide v8

    const/4 v10, 0x1

    .line 99
    invoke-static {v15, v3, v4, v10, v10}, Les/g9;->a([JJZZ)I

    move-result v11

    add-long/2addr v3, v8

    const/4 v8, 0x0

    .line 100
    invoke-static {v15, v3, v4, v10, v8}, Les/g9;->a([JJZZ)I

    move-result v3

    sub-int v4, v3, v11

    add-int/2addr v6, v4

    if-eq v7, v11, :cond_19

    const/4 v4, 0x1

    goto :goto_f

    :cond_19
    const/4 v4, 0x0

    :goto_f
    or-int/2addr v1, v4

    move v7, v3

    :cond_1a
    add-int/lit8 v0, v0, 0x1

    move/from16 v4, v43

    const/4 v3, 0x1

    goto :goto_e

    :cond_1b
    move v0, v4

    if-eq v6, v0, :cond_1c

    const/4 v0, 0x1

    goto :goto_10

    :cond_1c
    const/4 v0, 0x0

    :goto_10
    or-int/2addr v0, v1

    if-eqz v0, :cond_1d

    .line 101
    new-array v1, v6, [J

    goto :goto_11

    :cond_1d
    move-object v1, v12

    :goto_11
    if-eqz v0, :cond_1e

    .line 102
    new-array v3, v6, [I

    goto :goto_12

    :cond_1e
    move-object v3, v13

    :goto_12
    if-eqz v0, :cond_1f

    const/4 v14, 0x0

    :cond_1f
    if-eqz v0, :cond_20

    .line 103
    new-array v4, v6, [I

    goto :goto_13

    :cond_20
    move-object v4, v5

    .line 104
    :goto_13
    new-array v7, v6, [J

    .line 105
    new-array v8, v6, [J

    if-eqz v0, :cond_21

    move-wide/from16 v17, v36

    :cond_21
    move/from16 v25, v14

    move-wide/from16 v28, v17

    const/4 v9, 0x0

    const/4 v14, 0x0

    const/16 v46, 0x0

    .line 106
    :goto_14
    iget-object v10, v2, Les/f9;->f:[J

    array-length v11, v10

    if-ge v9, v11, :cond_29

    .line 107
    iget-object v11, v2, Les/f9;->g:[J

    move-object/from16 v18, v7

    move-object/from16 v20, v8

    aget-wide v7, v11, v9

    .line 108
    aget-wide v22, v10, v9

    const-wide/16 v10, -0x1

    cmp-long v16, v7, v10

    if-eqz v16, :cond_28

    .line 109
    iget-wide v10, v2, Les/f9;->b:J

    move-object/from16 v27, v4

    move-object/from16 p1, v5

    iget-wide v4, v2, Les/f9;->c:J

    move-wide/from16 v30, v22

    move-wide/from16 v32, v10

    move-wide/from16 v34, v4

    invoke-static/range {v30 .. v35}, Les/g9;->a(JJJ)J

    move-result-wide v4

    add-long/2addr v4, v7

    const/4 v10, 0x1

    .line 110
    invoke-static {v15, v7, v8, v10, v10}, Les/g9;->a([JJZZ)I

    move-result v11

    move/from16 v24, v14

    const/4 v14, 0x0

    .line 111
    invoke-static {v15, v4, v5, v10, v14}, Les/g9;->a([JJZZ)I

    move-result v4

    if-eqz v0, :cond_22

    sub-int v5, v4, v11

    move/from16 v10, v46

    .line 112
    invoke-static {v12, v11, v1, v10, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 113
    invoke-static {v13, v11, v3, v10, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    move-object/from16 v14, p1

    move-object/from16 v26, v12

    move-object/from16 v12, v27

    .line 114
    invoke-static {v14, v11, v12, v10, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    goto :goto_15

    :cond_22
    move-object/from16 v14, p1

    move-object/from16 v26, v12

    move-object/from16 v12, v27

    move/from16 v10, v46

    :goto_15
    move/from16 v5, v25

    :goto_16
    if-ge v11, v4, :cond_27

    if-lt v10, v6, :cond_23

    goto :goto_17

    :cond_23
    const-wide/32 v32, 0xf4240

    move-object/from16 v27, v13

    move-object/from16 p1, v14

    .line 115
    iget-wide v13, v2, Les/f9;->c:J

    move-wide/from16 v30, v36

    move-wide/from16 v34, v13

    invoke-static/range {v30 .. v35}, Les/g9;->a(JJJ)J

    move-result-wide v13

    .line 116
    aget-wide v30, v15, v11

    sub-long v38, v30, v7

    const-wide/32 v40, 0xf4240

    move/from16 v30, v6

    move-wide/from16 v31, v7

    iget-wide v6, v2, Les/f9;->b:J

    move-wide/from16 v42, v6

    invoke-static/range {v38 .. v43}, Les/g9;->a(JJJ)J

    move-result-wide v6

    add-long/2addr v13, v6

    .line 117
    aput-wide v13, v18, v10

    .line 118
    aget v6, v12, v10

    const/4 v7, 0x1

    if-ne v6, v7, :cond_24

    .line 119
    aget-wide v13, v18, v10

    aput-wide v13, v20, v24

    add-int/lit8 v24, v24, 0x1

    :cond_24
    if-eqz v0, :cond_25

    .line 120
    aget v6, v3, v10

    if-le v6, v5, :cond_25

    .line 121
    aget v5, v27, v11

    :cond_25
    if-eqz v0, :cond_26

    .line 122
    aget v6, v27, v11

    int-to-long v13, v6

    add-long v28, v28, v13

    :cond_26
    add-int/lit8 v10, v10, 0x1

    add-int/lit8 v11, v11, 0x1

    move-object/from16 v14, p1

    move-object/from16 v13, v27

    move/from16 v6, v30

    move-wide/from16 v7, v31

    goto :goto_16

    :cond_27
    :goto_17
    move/from16 v30, v6

    move-object/from16 v27, v13

    move-object/from16 p1, v14

    const/4 v7, 0x1

    move/from16 v25, v5

    move/from16 v46, v10

    move/from16 v14, v24

    goto :goto_18

    :cond_28
    move-object/from16 p1, v5

    move/from16 v30, v6

    move-object/from16 v26, v12

    move-object/from16 v27, v13

    move/from16 v24, v14

    move/from16 v10, v46

    const/4 v7, 0x1

    move-object v12, v4

    :goto_18
    add-long v36, v36, v22

    add-int/lit8 v9, v9, 0x1

    move-object/from16 v5, p1

    move-object v4, v12

    move-object/from16 v7, v18

    move-object/from16 v8, v20

    move-object/from16 v12, v26

    move-object/from16 v13, v27

    move/from16 v6, v30

    goto/16 :goto_14

    :cond_29
    move-object v12, v4

    move-object/from16 v18, v7

    move-object/from16 v20, v8

    .line 123
    new-array v0, v14, [J

    move-object/from16 v2, v20

    const/4 v4, 0x0

    .line 124
    invoke-static {v2, v4, v0, v4, v14}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 125
    new-instance v2, Les/f9$b;

    move-object/from16 v22, v2

    move-object/from16 v23, v1

    move-object/from16 v24, v3

    move-object/from16 v26, v18

    move-object/from16 v27, v12

    move-object/from16 v30, v0

    invoke-direct/range {v22 .. v30}, Les/f9$b;-><init>([J[II[J[IJ[J)V

    return-object v2

    .line 126
    :cond_2a
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "remaining samples error"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 127
    :cond_2b
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "stsc first chunk must be 1"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    goto :goto_1a

    :goto_19
    throw v0

    :goto_1a
    goto :goto_19
.end method

.method public static a(Les/c9$a$a;Les/c9$a$b;Z)Les/f9;
    .locals 21
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/NullPointerException;
        }
    .end annotation

    move-object/from16 v0, p0

    .line 1
    sget v1, Les/c9$a;->w:I

    invoke-virtual {v0, v1}, Les/c9$a$a;->c(I)Les/c9$a$a;

    move-result-object v1

    if-eqz v1, :cond_7

    .line 2
    sget v2, Les/c9$a;->G:I

    invoke-virtual {v1, v2}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v2

    if-eqz v2, :cond_6

    .line 3
    iget-object v2, v2, Les/c9$a$b;->d0:Les/e9;

    invoke-static {v2}, Les/c9;->a(Les/e9;)I

    move-result v5

    .line 4
    sget v2, Les/f9;->j:I

    const/4 v3, 0x0

    if-eq v5, v2, :cond_0

    sget v2, Les/f9;->i:I

    if-eq v5, v2, :cond_0

    sget v2, Les/f9;->k:I

    if-eq v5, v2, :cond_0

    sget v2, Les/f9;->l:I

    if-eq v5, v2, :cond_0

    sget v2, Les/f9;->m:I

    if-eq v5, v2, :cond_0

    return-object v3

    .line 5
    :cond_0
    sget v2, Les/c9$a;->C:I

    invoke-virtual {v0, v2}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v2

    if-eqz v2, :cond_5

    .line 6
    iget-object v2, v2, Les/c9$a$b;->d0:Les/e9;

    invoke-static {v2}, Les/c9;->f(Les/e9;)Les/c9$b;

    move-result-object v2

    .line 7
    invoke-static {v2}, Les/c9$b;->a(Les/c9$b;)J

    move-result-wide v6

    move-object/from16 v4, p1

    .line 8
    iget-object v4, v4, Les/c9$a$b;->d0:Les/e9;

    invoke-static {v4}, Les/c9;->e(Les/e9;)J

    move-result-wide v12

    const-wide/16 v8, -0x1

    cmp-long v4, v6, v8

    if-nez v4, :cond_1

    move-wide v10, v8

    goto :goto_0

    :cond_1
    const-wide/32 v8, 0xf4240

    move-wide v10, v12

    .line 9
    invoke-static/range {v6 .. v11}, Les/g9;->a(JJJ)J

    move-result-wide v6

    move-wide v10, v6

    .line 10
    :goto_0
    sget v4, Les/c9$a;->x:I

    invoke-virtual {v1, v4}, Les/c9$a$a;->c(I)Les/c9$a$a;

    move-result-object v4

    if-eqz v4, :cond_4

    .line 11
    sget v6, Les/c9$a;->y:I

    invoke-virtual {v4, v6}, Les/c9$a$a;->c(I)Les/c9$a$a;

    move-result-object v4

    .line 12
    sget v6, Les/c9$a;->F:I

    invoke-virtual {v1, v6}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v1

    .line 13
    sget v6, Les/c9$a;->H:I

    invoke-virtual {v4, v6}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v4

    if-eqz v1, :cond_3

    if-eqz v4, :cond_3

    .line 14
    iget-object v1, v1, Les/c9$a$b;->d0:Les/e9;

    invoke-static {v1}, Les/c9;->b(Les/e9;)Landroid/util/Pair;

    move-result-object v1

    .line 15
    iget-object v14, v4, Les/c9$a$b;->d0:Les/e9;

    invoke-static {v2}, Les/c9$b;->b(Les/c9$b;)I

    move-result v15

    .line 16
    invoke-static {v2}, Les/c9$b;->c(Les/c9$b;)I

    move-result v18

    iget-object v4, v1, Landroid/util/Pair;->second:Ljava/lang/Object;

    move-object/from16 v19, v4

    check-cast v19, Ljava/lang/String;

    move-wide/from16 v16, v10

    move/from16 v20, p2

    .line 17
    invoke-static/range {v14 .. v20}, Les/c9;->a(Les/e9;IJILjava/lang/String;Z)Les/f9$a;

    move-result-object v14

    .line 18
    sget v4, Les/c9$a;->D:I

    invoke-virtual {v0, v4}, Les/c9$a$a;->c(I)Les/c9$a$a;

    move-result-object v0

    invoke-static {v0}, Les/c9;->a(Les/c9$a$a;)Landroid/util/Pair;

    move-result-object v0

    if-nez v14, :cond_2

    goto :goto_1

    .line 19
    :cond_2
    new-instance v15, Les/f9;

    .line 20
    invoke-static {v2}, Les/c9$b;->b(Les/c9$b;)I

    move-result v4

    iget-object v1, v1, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    iget-object v1, v0, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v1, [J

    iget-object v0, v0, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v0, [J

    move-object v3, v15

    move-wide v8, v12

    move-object v12, v14

    move-object v13, v1

    move-object v14, v0

    invoke-direct/range {v3 .. v14}, Les/f9;-><init>(IIJJJLes/f9$a;[J[J)V

    :goto_1
    return-object v3

    .line 21
    :cond_3
    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "mdhdLeaf or stsdLeaf is null"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 22
    :cond_4
    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "minf is null"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 23
    :cond_5
    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "tkhdLeaf is null"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 24
    :cond_6
    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "hdlrLeaf is null"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 25
    :cond_7
    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "mdia is null"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method private static b(Les/e9;)Landroid/util/Pair;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/e9;",
            ")",
            "Landroid/util/Pair<",
            "Ljava/lang/Long;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    const/16 v0, 0x8

    .line 19
    invoke-virtual {p0, v0}, Les/e9;->b(I)V

    .line 20
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v1

    .line 21
    invoke-static {v1}, Les/c9$a;->b(I)I

    move-result v1

    if-nez v1, :cond_0

    const/16 v2, 0x8

    goto :goto_0

    :cond_0
    const/16 v2, 0x10

    .line 22
    :goto_0
    invoke-virtual {p0, v2}, Les/e9;->c(I)V

    .line 23
    invoke-virtual {p0}, Les/e9;->h()J

    move-result-wide v2

    if-nez v1, :cond_1

    const/4 v0, 0x4

    .line 24
    :cond_1
    invoke-virtual {p0, v0}, Les/e9;->c(I)V

    .line 25
    invoke-virtual {p0}, Les/e9;->k()I

    move-result p0

    .line 26
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    shr-int/lit8 v1, p0, 0xa

    and-int/lit8 v1, v1, 0x1f

    add-int/lit8 v1, v1, 0x60

    int-to-char v1, v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    shr-int/lit8 v1, p0, 0x5

    and-int/lit8 v1, v1, 0x1f

    add-int/lit8 v1, v1, 0x60

    int-to-char v1, v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    and-int/lit8 p0, p0, 0x1f

    add-int/lit8 p0, p0, 0x60

    int-to-char p0, p0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    .line 27
    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-static {v0, p0}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object p0

    return-object p0
.end method

.method public static b(Les/e9;Ljava/lang/String;JLjava/lang/String;)Les/f9$a;
    .locals 14
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    const/4 v0, 0x2

    move-object v1, p0

    .line 28
    invoke-virtual {p0, v0}, Les/e9;->c(I)V

    .line 29
    invoke-virtual {p0}, Les/e9;->f()I

    move-result v0

    and-int/lit16 v0, v0, 0xc0

    shr-int/lit8 v0, v0, 0x6

    if-ltz v0, :cond_1

    .line 30
    sget-object v2, Les/c9;->a:[I

    array-length v3, v2

    if-ge v0, v3, :cond_1

    .line 31
    aget v11, v2, v0

    .line 32
    invoke-virtual {p0}, Les/e9;->f()I

    move-result v0

    .line 33
    sget-object v1, Les/c9;->b:[I

    and-int/lit8 v2, v0, 0xe

    shr-int/lit8 v2, v2, 0x1

    aget v1, v1, v2

    and-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_0

    add-int/lit8 v1, v1, 0x1

    :cond_0
    move v10, v1

    const/4 v6, -0x1

    const/4 v7, -0x1

    const/4 v12, 0x0

    const-string v5, "audio/eac3"

    move-object v4, p1

    move-wide/from16 v8, p2

    move-object/from16 v13, p4

    .line 34
    invoke-static/range {v4 .. v13}, Les/f9$a;->a(Ljava/lang/String;Ljava/lang/String;IIJIILjava/util/List;Ljava/lang/String;)Les/f9$a;

    move-result-object v0

    return-object v0

    .line 35
    :cond_1
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "fscod is neither in nor at the end of the SAMPLE_RATE_BY_FSCOD"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public static b(Les/c9$a$a;)Ljava/util/Map;
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/c9$a$a;",
            ")",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/NullPointerException;
        }
    .end annotation

    .line 1
    sget v0, Les/c9$a;->G:I

    invoke-virtual {p0, v0}, Les/c9$a$a;->d(I)Les/c9$a$b;

    move-result-object v0

    if-eqz v0, :cond_9

    .line 2
    iget-object v0, v0, Les/c9$a$b;->d0:Les/e9;

    invoke-static {v0}, Les/c9;->a(Les/e9;)I

    move-result v0

    .line 3
    sget v1, Les/c9$a;->b0:I

    const/4 v2, 0x0

    if-eq v0, v1, :cond_0

    return-object v2

    .line 4
    :cond_0
    sget v0, Les/c9$a;->Z:I

    invoke-virtual {p0, v0}, Les/c9$a$a;->c(I)Les/c9$a$a;

    move-result-object v0

    if-nez v0, :cond_1

    return-object v2

    .line 5
    :cond_1
    sget v1, Les/c9$a;->a0:I

    invoke-virtual {p0, v1}, Les/c9$a$a;->c(I)Les/c9$a$a;

    move-result-object p0

    if-nez p0, :cond_2

    return-object v2

    .line 6
    :cond_2
    iget-object v0, v0, Les/c9$a$a;->e0:Ljava/util/List;

    .line 7
    iget-object p0, p0, Les/c9$a$a;->e0:Ljava/util/List;

    .line 8
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_8

    invoke-interface {p0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_8

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v3

    if-eq v1, v3, :cond_3

    goto :goto_2

    .line 9
    :cond_3
    new-instance v1, Ljava/util/HashMap;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v3

    invoke-direct {v1, v3}, Ljava/util/HashMap;-><init>(I)V

    const/4 v3, 0x0

    .line 10
    :goto_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v4

    if-ge v3, v4, :cond_6

    .line 11
    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/c9$a$b;

    .line 12
    invoke-interface {p0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/c9$a$b;

    .line 13
    iget v6, v4, Les/c9$a;->a:I

    sget v7, Les/c9$a;->b0:I

    if-ne v6, v7, :cond_5

    iget v6, v5, Les/c9$a;->a:I

    sget v7, Les/c9$a;->c0:I

    if-eq v6, v7, :cond_4

    goto :goto_1

    .line 14
    :cond_4
    iget-object v4, v4, Les/c9$a$b;->d0:Les/e9;

    invoke-static {v4}, Les/c9;->c(Les/e9;)Ljava/lang/String;

    move-result-object v4

    .line 15
    iget-object v5, v5, Les/c9$a$b;->d0:Les/e9;

    invoke-static {v5}, Les/c9;->d(Les/e9;)Ljava/lang/String;

    move-result-object v5

    .line 16
    invoke-interface {v1, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_5
    :goto_1
    return-object v2

    .line 17
    :cond_6
    invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z

    move-result p0

    if-eqz p0, :cond_7

    return-object v2

    :cond_7
    return-object v1

    :cond_8
    :goto_2
    return-object v2

    .line 18
    :cond_9
    new-instance p0, Ljava/lang/NullPointerException;

    const-string v0, "hdlrLeaf is null"

    invoke-direct {p0, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    goto :goto_4

    :goto_3
    throw p0

    :goto_4
    goto :goto_3
.end method

.method private static c(Les/e9;)Ljava/lang/String;
    .locals 1

    const/16 v0, 0x8

    .line 1
    invoke-virtual {p0, v0}, Les/e9;->b(I)V

    .line 2
    invoke-virtual {p0}, Les/e9;->a()I

    move-result v0

    invoke-virtual {p0, v0}, Les/e9;->a(I)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private static d(Les/e9;)Ljava/lang/String;
    .locals 1

    const/16 v0, 0x8

    .line 1
    invoke-virtual {p0, v0}, Les/e9;->b(I)V

    .line 2
    invoke-virtual {p0, v0}, Les/e9;->c(I)V

    .line 3
    invoke-virtual {p0}, Les/e9;->a()I

    move-result v0

    invoke-virtual {p0, v0}, Les/e9;->a(I)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private static e(Les/e9;)J
    .locals 2

    const/16 v0, 0x8

    .line 1
    invoke-virtual {p0, v0}, Les/e9;->b(I)V

    .line 2
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v1

    .line 3
    invoke-static {v1}, Les/c9$a;->b(I)I

    move-result v1

    if-nez v1, :cond_0

    goto :goto_0

    :cond_0
    const/16 v0, 0x10

    .line 4
    :goto_0
    invoke-virtual {p0, v0}, Les/e9;->c(I)V

    .line 5
    invoke-virtual {p0}, Les/e9;->h()J

    move-result-wide v0

    return-wide v0
.end method

.method private static f(Les/e9;)Les/c9$b;
    .locals 10

    const/16 v0, 0x8

    .line 1
    invoke-virtual {p0, v0}, Les/e9;->b(I)V

    .line 2
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v1

    .line 3
    invoke-static {v1}, Les/c9$a;->b(I)I

    move-result v1

    const/16 v2, 0x10

    if-nez v1, :cond_0

    const/16 v3, 0x8

    goto :goto_0

    :cond_0
    const/16 v3, 0x10

    .line 4
    :goto_0
    invoke-virtual {p0, v3}, Les/e9;->c(I)V

    .line 5
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v3

    const/4 v4, 0x4

    .line 6
    invoke-virtual {p0, v4}, Les/e9;->c(I)V

    .line 7
    invoke-virtual {p0}, Les/e9;->b()I

    move-result v5

    if-nez v1, :cond_1

    const/4 v0, 0x4

    :cond_1
    const/4 v6, 0x0

    const/4 v7, 0x0

    :goto_1
    if-ge v7, v0, :cond_3

    .line 8
    iget-object v8, p0, Les/e9;->a:[B

    add-int v9, v5, v7

    aget-byte v8, v8, v9

    const/4 v9, -0x1

    if-eq v8, v9, :cond_2

    const/4 v5, 0x0

    goto :goto_2

    :cond_2
    add-int/lit8 v7, v7, 0x1

    goto :goto_1

    :cond_3
    const/4 v5, 0x1

    :goto_2
    if-eqz v5, :cond_4

    .line 9
    invoke-virtual {p0, v0}, Les/e9;->c(I)V

    const-wide/16 v0, -0x1

    goto :goto_3

    :cond_4
    if-nez v1, :cond_5

    .line 10
    invoke-virtual {p0}, Les/e9;->h()J

    move-result-wide v0

    goto :goto_3

    :cond_5
    invoke-virtual {p0}, Les/e9;->j()J

    move-result-wide v0

    .line 11
    :goto_3
    invoke-virtual {p0, v2}, Les/e9;->c(I)V

    .line 12
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v2

    .line 13
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v5

    .line 14
    invoke-virtual {p0, v4}, Les/e9;->c(I)V

    .line 15
    invoke-virtual {p0}, Les/e9;->c()I

    move-result v4

    .line 16
    invoke-virtual {p0}, Les/e9;->c()I

    move-result p0

    const/high16 v7, 0x10000

    const/high16 v8, -0x10000

    if-nez v2, :cond_6

    if-ne v5, v7, :cond_6

    if-ne v4, v8, :cond_6

    if-nez p0, :cond_6

    const/16 v6, 0x5a

    goto :goto_4

    :cond_6
    if-nez v2, :cond_7

    if-ne v5, v8, :cond_7

    if-ne v4, v7, :cond_7

    if-nez p0, :cond_7

    const/16 v6, 0x10e

    goto :goto_4

    :cond_7
    if-ne v2, v8, :cond_8

    if-nez v5, :cond_8

    if-nez v4, :cond_8

    if-ne p0, v8, :cond_8

    const/16 v6, 0xb4

    .line 17
    :cond_8
    :goto_4
    new-instance p0, Les/c9$b;

    invoke-direct {p0, v3, v0, v1, v6}, Les/c9$b;-><init>(IJI)V

    return-object p0
.end method
